﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.search-box {
    display: flex;
    align-items: center;
    width: 20%;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: -30px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

    .nav-links a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }

/* 主内容区域 */
.container {
    margin: 20px auto;
    padding: 0 5px;
    display: flex;
    gap: 30px;
}

/* 左侧分类导航 */
.sidebar {
    width: 10%;
    min-width: 120px;
    max-width: 180px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .sidebar-title .icon {
        font-size: 14px;
        color: #999;
    }

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.category-list a:hover {
    background-color: #f0f7ff;
    color: #1890ff;
}

.category-list a .icon {
    margin-right: 8px;
    font-size: 14px;
}
.cselect {
    background-color: #f0f7ff;
    color: #1890ff;
}
.cselect a{
    background-color: #f0f7ff;
    color: #1890ff;
}
/* 右侧工具列表 */
.content {
    width: 90%;
}

.tools-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tools-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.tools-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 6px 12px;
    background-color: #f0f7ff;
    border-radius: 15px;
    font-size: 12px;
    color: #1890ff;
    cursor: pointer;
}

    .tab.active {
        background-color: #1890ff;
        color: white;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .tool-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #e0e0e0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.tool-description {
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 页脚样式 */
footer {
    background-color: #fff;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

    .footer-links a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: #1890ff;
        }

.copyright {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar, .content {
        width: 100%;
    }

    .sidebar {
        margin-bottom: 30px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .search-box {
        width: 100%;
        margin: 15px 0;
    }
}
